import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Register from '../shixunproject/Register.vue'
import Login from '../shixunproject/Login.vue'
import Mainhome from '../shixunproject/Mainhome.vue'
import Createuser from '../shixunproject/Createuser.vue'
import Update from '../shixunproject/Update.vue'
import Createrole from '../shixunproject/Createrole.vue'
import Process from '../shixunproject/Process.vue'
import Createpermission from '../shixunproject/Createpermission.vue'
import Liucheng from '../shixunproject/Liucheng.vue'
import Faqi from '../shixunproject/Faqi.vue'
import Shenpi from '../shixunproject/Shenpi'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'register',
    component: Register
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/shenpi',
    name: 'Shenpi',
    component: Shenpi
  },
  {
    path: '/mainhome',
    name: 'Mainhome',
    component: Mainhome
  },
  {
    path: '/createuser',
    name: 'Createuser',
    component: Createuser

  },
  {
    path: '/createrole',
    name: 'Createrole',
    component: Createrole

  },
  {
    path: '/createpermission',
    name: 'Createpermission',
    component: Createpermission

  },
  {
    path: '/update',
    name: 'Update',
    component: Update

  },
  {
    path: '/faqi',
    name: 'Faqi',
    component: Faqi

  },
  {
    path: '/process',
    name: 'Process',
    component: Process

  },
  {
    path: '/liucheng',
    name: 'Liucheng',
    component: Liucheng

  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
